package com.inspur.ourhis_afterend.Dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inspur.ourhis_afterend.Entity.Member;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface MemberDao extends BaseMapper<Member> {

    @Update("update MEMBERS set balance = balance + #{money} where memberid = #{memberid}")
    public int increase(@Param("memberid") String memberid, @Param("money") double money)throws Exception;
}
